import fetch from 'utils/fetch';
// 分页
export function smsTemplatePage(query) {
  return fetch({
    url: '/api/admin/loanOrderApplyTown/smsTemplatePage',
    method: 'post',
    data: query
  });
}
// 短信类型
export function getDict() {
  return fetch({
    url: '/api/admin/loanCommon/getDict?code=SMS_TYPE',
    method: 'get'
  })
}
// 添加
export function addSmsTemplate(params) {
  return fetch({
    url: '/api/admin/loanOrderApplyTown/addSmsTemplate',
    method: 'post',
    data: params
  })
}
// 启用停用
export function changeSmsStatus(params) {
  return fetch({
    url: '/api/admin/loanOrderApplyTown/changeSmsStatus',
    method: 'post',
    data: params
  })
}
// 删除
export function delSmsTemplate(params) {
  return fetch({
    url: '/api/admin/loanOrderApplyTown/delSmsTemplate',
    method: 'post',
    data: params
  })
}
// 发送上传
export function groupSendSms(params) {
  return fetch({
    url: '/api/admin/loanOrderApplyTown/groupSendSms',
    method: 'post',
    data: params
  })
}
// 运营商
export function getOperators() {
  return fetch({
    url: '/api/admin/loanCommon/getDict?code=SMS_PARTY',
    method: 'get'
  })
}